#!/bin/bash

source "`dirname $0`/appname.inc"

cd ${WorkDir}

if [ ! -s ${PidFile} ]
then
	echo "${PidFile} not exist or is zero"
else
    pid=`cat ${PidFile}`
        ps -ef | awk -vpid=${pid} '{if($1=="UID" || $3==pid || $2==pid) print $0}'
fi
	
cd ${CurrDir}
